
#include "Random.h"
#include "time.h"
#include <stdlib.h>

Random::Random()
{
  srand(time(NULL));
}

int Random::next()
{
	return rand();
}

int Random::next(int low, int high)
{
	return low + (int) (next() / ((double)RAND_MAX + 1) * (high - low + 1));
}
